package com.svse.designPattern.behaviour.state.context;

import com.svse.designPattern.behaviour.state.impl.ConcreteStateA;
import com.svse.designPattern.behaviour.state.service.State;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/8 11:11
 */
public class Context {
    private State state;

    public Context() {
        this.state=new ConcreteStateA();
    }


    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }
    public void handle(){
        state.Handle(this);
    }
}
